package com.ruoyi.hatha.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 我的会员卡对象 p_myvip
 * 
 * @author Dong
 * @date 2024-03-12
 */
public class PMyvip extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 会员卡ID */
    @Excel(name = "会员卡ID")
    private Long cardId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long uid;

    /** 订单信息 */
    @Excel(name = "订单信息")
    private Long orderId;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    private Integer status;

    private Integer sycs;

    private String type;

    @Transient
    private PCards card;

    private Long fid;

    public Long getFid() {
        return fid;
    }

    public void setFid(Long fid) {
        this.fid = fid;
    }

    public Integer getSycs() {
        return sycs;
    }

    public void setSycs(Integer sycs) {
        this.sycs = sycs;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public PCards getCard() {
        return card;
    }

    public void setCard(PCards card) {
        this.card = card;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCardId(Long cardId) 
    {
        this.cardId = cardId;
    }

    public Long getCardId() 
    {
        return cardId;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cardId", getCardId())
            .append("uid", getUid())
            .append("createTime", getCreateTime())
            .append("orderId", getOrderId())
            .append("endTime", getEndTime())
            .append("type", getType())
            .append("sycs", getSycs())
            .append("fid", getFid())
            .toString();
    }
}
